//
//  MazeObjectView.h
//  BoxMan
//
//  Created by wang yiping on 11-2-15.
//  Copyright 2011 app. All rights reserved.
//

#import <Foundation/Foundation.h>
@protocol MazeObjectViewDelegate;

@interface MazeObjectView : UIImageView {
	id <MazeObjectViewDelegate> delegate;
	char objectType;
	BOOL isOutOfBlock;
    CGPoint touchLocation; // Location of touch in own coordinates (stays constant during dragging).
	CGPoint objectPosition;
}

@property (nonatomic, assign) id <MazeObjectViewDelegate> delegate;
@property (nonatomic, assign) char objectType;
@property (nonatomic, assign) CGPoint objectPosition;
@end
@protocol MazeObjectViewDelegate <NSObject>
- (void)mazeObjectWasTapped:(MazeObjectView *) mv;
@end